package main

import (
	"algorithm/algorithm/mysort"
	"encoding/json"
	"fmt"
)

func main() {
	data := []int{1, 3, -1, -3, 5, 3, 6, 7}
	ret := mysort.HeapSort(data)
	fmt.Printf("ret: %s\n", jsonEncode(ret))
}

func jsonEncode(data interface{}) string {
	str, _ := json.Marshal(data)

	return string(str)
}
